Skip to content

ObjectToJson Capitalize First Letter#19

Open
macgayverarmini wants to merge 2 commits into
PKGeorgiev:masterfrom
datalider:master
Open

ObjectToJson Capitalize First Letter#19
macgayverarmini wants to merge 2 commits into
PKGeorgiev:masterfrom
datalider:master

Conversation

@macgayverarmini

Copy link
Copy Markdown

Delphi, when converting objects to JSON, in the procedure "TJSONConverter.ConvertFieldNameToJson", it forcibly changes the first letter to lowercase, and there are Rest server implementations that are sensitive to the case of JSON keys. I imagine that Embarcadero did not take action on this because there is the [JSONName] attribute that tells the converter to use exactly as defined in the attribute. So I added an option in the application to add the JSONName attribute automatically.

…rter.ConvertFieldNameToJson", it forcibly changes the first letter to lowercase, and there are Rest server implementations that are sensitive to the case of JSON keys. I imagine that Embarcadero did not take action on this because there is the [JSONName] attribute that tells the converter to use exactly as defined in the attribute. So I added an option in the application to add the JSONName attribute automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant